/*
 * @Author: xzy 1453077527@qq.com
 * @Date: 2025-08-21 11:11:57
 * @LastEditors: xzy 1453077527@qq.com
 * @LastEditTime: 2025-08-26 21:00:56
 * @Description:
 */
package com.xtedu.examproject.dao.base;

import com.xtedu.examproject.entity.User;
import com.xtedu.examproject.util.PageHelper;

import java.util.List;

public interface UserDao extends BaseDao<User> {
    int updateUserState(int userId, int state);

    int updateUserRole(int userId, int roleId);

    User findByUsername(String username);

    List<User> findByRoleId(int roleId);

    PageHelper findPageByRoleId(int roleId, int userId,  int pageIndex, int pageSize, int roleSelect);

    PageHelper findPageByRoleIds(int pageIndex, int pageSize, int... roleIds);


}
